package com.ruoyi.project.orderSystem.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.project.orderSystem.mapper.StationItemFileMapper;
import com.ruoyi.project.orderSystem.domain.StationItemFile;
import com.ruoyi.project.orderSystem.service.IStationItemFileService;

/**
 * 站点巡检文件Service业务层处理
 * 
 * @author wangshuo
 * @date 2021-01-24
 */
@Service
public class StationItemFileServiceImpl implements IStationItemFileService 
{
    @Autowired
    private StationItemFileMapper stationItemFileMapper;

    /**
     * 查询站点巡检文件
     * 
     * @param id 站点巡检文件ID
     * @return 站点巡检文件
     */
    @Override
    public StationItemFile selectStationItemFileById(Long id)
    {
        return stationItemFileMapper.selectStationItemFileById(id);
    }

    /**
     * 查询站点巡检文件列表
     * 
     * @param stationItemFile 站点巡检文件
     * @return 站点巡检文件
     */
    @Override
    public List<StationItemFile> selectStationItemFileList(StationItemFile stationItemFile)
    {
        return stationItemFileMapper.selectStationItemFileList(stationItemFile);
    }

    /**
     * 新增站点巡检文件
     * 
     * @param stationItemFile 站点巡检文件
     * @return 结果
     */
    @Override
    public int insertStationItemFile(StationItemFile stationItemFile)
    {
        return stationItemFileMapper.insertStationItemFile(stationItemFile);
    }

    /**
     * 修改站点巡检文件
     * 
     * @param stationItemFile 站点巡检文件
     * @return 结果
     */
    @Override
    public int updateStationItemFile(StationItemFile stationItemFile)
    {
        return stationItemFileMapper.updateStationItemFile(stationItemFile);
    }

    /**
     * 批量删除站点巡检文件
     * 
     * @param ids 需要删除的站点巡检文件ID
     * @return 结果
     */
    @Override
    public int deleteStationItemFileByIds(Long[] ids)
    {
        return stationItemFileMapper.deleteStationItemFileByIds(ids);
    }

    /**
     * 删除站点巡检文件信息
     * 
     * @param id 站点巡检文件ID
     * @return 结果
     */
    @Override
    public int deleteStationItemFileById(Long id)
    {
        return stationItemFileMapper.deleteStationItemFileById(id);
    }
}
